class SuccessModel {
    constructor(data, msg = "success", code = 200) {
        this.data = data;
        this.msg = msg;
        this.code = code;
    }
}
function isTrue(str) {
    return str.toLowerCase() === 'true';
}

function sleep(times) {
    return new Promise((resolve, reject) => {
        setTimeout(() => {
            resolve()
        }, times)
    })
}

module.exports = {
    SuccessModel,
    isTrue,
    sleep
}